package com.study.demo_controlleradvice.controlleradvice;

import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.InitBinder;

/**
 * @ClassName: PreHandleController
 * @Description:
 * @author: WS
 * @date 2020/12/11
 * @Version: 1.0
 **/
@ControllerAdvice
public class PreHandleController {
    @InitBinder("a")
    public void InitA(WebDataBinder binder){
        binder.setFieldDefaultPrefix("a.");
    }
}
